package com.hex.liyue.commonmodule.utils;

import java.util.List;

/**
 * Created by yukuo on 2016/5/21.
 */
public class CommonUtils {
    /**
     * 给定一个字符串集合返回一个拼接字符串
     *
     * @param list
     * @return
     */
    public static String getStrings(List<String> list) {
        String string = "";
        for (int i = 0; i < list.size(); i++) {
            if (i == 0) {
                string = list.get(0);
            } else {
                string = string + "," + list.get(i);
            }
        }
        return string;
    }
}
